package com.hippy.erya.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class Common extends BaseVo{
    /**
     * 版本号
     */
    @ApiModelProperty(position = 1, value = "版本号", required = false)
    private String version;

    /**
     * 用户id
     */
    @ApiModelProperty(position = 1, value = "用户id", required = false)
    private String userId;

    /**
     * 请求渠道
     */
    @NotBlank(message = "渠道编号不能为空")
    @ApiModelProperty(position = 1, value = "基本属性--渠道编号APP\n" +
            "H5\n" +
            "WEB\n"
            , required = true)
    private String terminalType;

    /**
     * 唯一流水号
     */
    @NotBlank(message = "唯一流水号不能为空")
    @ApiModelProperty(position = 2, value = "基本属性--唯一流水号", required = true)
    private String requestSerialNo;

    /**
     * 客户端时间
     */
    @ApiModelProperty(position = 3, value = "基本属性--客户端时间 yyyy-MM-dd HH:mm:ss.SSS", required = true)
    private Date clientDateTime;
}
